package com.batch.listener;

import org.springframework.batch.core.ChunkListener;
import org.springframework.batch.core.scope.context.ChunkContext;

/**
 * 自定义监听器
 */

public class ChunkListener1 implements ChunkListener {

    @Override
    public void beforeChunk(ChunkContext context) {
        System.out.println("----------beforeChunkListener1------------");
    }

    @Override
    public void afterChunk(ChunkContext context) {
        System.out.println("----------afterChunkListener1------------");

    }

    @Override
    public void afterChunkError(ChunkContext context) {
        System.out.println("ERROR----------afterChunkListener1------------");
    }
}
